import { defHttp as request } from '/@/utils/http/axios'

export const getAppDetails = (p) => {
    return request.post({
        url: '/core/client/queryClientModelByClientId',
        data: p
    });
}
export const getAppList = (p) => {
    return request.post({
        url: '/core/client/queryClientByUserPermission',
        data: p
    });
};
export const addApp = (p) => {
    return request.post({
        url: '/core/client/addClient',
        data: p
    });
};
export const deleteApp = (p) => {
    return request.post({
        url: '/core/client/batchRemoveClient',
        data: p
    });
};
export const updateApp = (p) => {
    return request.post({
        url: '/core/client/modifyClient',
        data: p
    });
};
export const queryAllClientAndRole = () => {
    return request.post({
        url: '/core/clientUserGroup/queryRoleByClient',
    });
};